import java.util.ArrayList;

public class AST {
    private String name;
    private boolean isLeaf;
    private String content;
    private String var;
    private ArrayList<AST> node;


    public AST(String name, boolean isLeaf, String content) {
        this.name = name;
        this.isLeaf = isLeaf;
        this.content = content;
        this.node = new ArrayList<>();
        this.var = null;
    }

    public String getName() {
        return name;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public String getContent() {
        return content;
    }

    public ArrayList<AST> getNode() {
        return node;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getVar() {
        return var;
    }

    public void setVar(String var) {
        this.var = var;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }
}
